<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>

        .outer {
            width: 1300px;
            height: 900px;
            border: 1px solid black;
        }

        .outer:hover .box {
            width: 1300px;
        }

        .box {
            width: 200px;
            height: 100px;
            background-color: orange;
            /* 设置哪个属性需要过渡效果 */
            /* transition-property: height, background-color; */

            /* 让所有能过渡的属性都进行过渡。能用数字或百分比表示出来的属性，就能过渡 */
            transition-property: all;

            /* 设置过渡的时间 */
            transition-duration: 5s;

            /* 过渡延迟 */
            /* transition-delay: 2s; */


        }

        .box1 {
            background-color: skyblue;
            transition-timing-function: ease;
        }

        .box2 {
            background-color: gray;
            transition-timing-function: linear;
        }

        .box3 {
            background-color: cadetblue;
            transition-timing-function: ease-in;
        }
        .box4 {
            background-color: chocolate;
            transition-timing-function: ease-out;
        }
        .box5 {
            background-color: brown;
            transition-timing-function: ease-in-out;
        }
        .box6 {
            background-color: red;
            transition-timing-function: step-start;
        }
        .box7 {
            background-color: green;
            transition-timing-function: step-end;
        }
        .box8 {
            background-color: yellow;
            transition-timing-function: steps(10, start);
        }
        .box9 {
            background-color: aqua;
            transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1)
        }

        
    </style>
</head>
<body>

    <div class="outer">
        <div class="box box1">ease（慢，快，慢）</div>
        <div class="box box2">linear（匀速）</div>
        <div class="box box3">ease-in（一直加速）</div>
        <div class="box box4">ease-out（一直减速）</div>
        <div class="box box5">ease-in-out（慢，快，慢），但是比ease更慢</div>
        <div class="box box6">step-start（不考虑过渡时间，直接到终点）</div>
        <div class="box box7">step-end（考虑过渡时间，但无过渡效果，过渡时间到了以后，直接到终点）</div>
        <div class="box box8">steps（分步过渡），start表示立刻开始过渡，end表示跳过一个过渡。简单来说就是一个从0开始，一个从1开始</div>
        <div class="box box9">贝赛尔曲线 <a href="https://cubic-bezier.com" target="_blank">在线制作</a></div>
    </div>
    
    
</body>
</html>